<?php if(get_template_type() == 'index'){?>
<style>
    ._jmyp #header{
        background:#f5f5f5 !important;
    }
    .side_nav{
        width: 250px !important;
    }
    .nch-breadcrumb-layout,.my_left_category{
        display: none !important; 
    }
    .nav_bg {
        border-bottom: 2px solid #598ee4 !important;
    }
</style>
<?php
    if(isset($_GET['brand']) && !isset($_GET['cate_id'])){
        $binfo = Model('brand')->find($_GET['brand']);
        if ($binfo) {
            $_GET['cate_id'] = $binfo['class_id'];
        }
    }
?>

    <div class="main cate-main" id="main1">
    <div class="main-con fix">
        <div class="main-conl hide-show">
            <div class="sub-cate">
                <div class="sub-catecon">
                    <ul>
                    <?php 
                        $model_goods_class = Model('goods_class');
                        $goods_class = $model_goods_class->getGoodsClassListByParentId($_GET['cate_id']);
                        // print_r($goods_class);
                        foreach ($goods_class as $key => $value) {
                    ?>
                        <li>
                            <div class="sub-cate-tit"><a href='index.php?act=search&op=index&cate_id=<?php echo $value['gc_id'];?>'><?php echo $value['gc_name'];?></a></div>
                        </li>
                    <?php }?>
                    </ul>
                </div>
            </div>
            <div class="hot-good">
                <!--<div class="mb10"><a><img  src="/shop/templates/haidao/pictures/t1.png"/></a></div>
                <div class="mb10"><a><img  src="/shop/templates/haidao/pictures/t2.png"/></a></div>-->

            </div>
        </div>
        <div class="main-conr">
            <div class="category">
                <div class="category_ad" style="display:none;"></div>
                <div class="fix">
                    <!--<a><img src="/shop/templates/haidao/pictures/h.png"/></a>-->
                    <?php
                    $pics = tpl_get('search,top');
                    foreach ($pics as $key => $value) {
                        ?>
                        <a href="<?php echo $value['link']; ?>"><img
                                src="/shop/templates/haidao/<?php echo $value['pic']; ?>" width="948" height="343"
                                alt="" border="0"/></a><br/>
                    <?php } ?>
                </div>

                <div class="sub_category" style="display:none;">
                    <h2>按子分类选择</h2>
                    <ul id="ul_subcategory"></ul>
                </div>
                <p class="sub_shrink" id="sp_subcategory"><span>展开搜索</span></p>

                <div style="height:20px; overflow:hidden;"></div>

                <div class="sub_property">
                    <!--<h2>按品牌/属性选择</h2>-->

                    <div class="attribute_bd">

                        <?php if((isset($output['checked_brand']) && is_array($output['checked_brand'])) || (isset($output['checked_attr']) && is_array($output['checked_attr']))){?>
                          <dl class="attribute_dl">
                            <dt class="attribute_name"><?php echo $lang['goods_class_index_selected'].$lang['nc_colon'];?></dt>
                            <dd class="attribute_val">
                              <?php if(isset($output['checked_brand']) && is_array($output['checked_brand'])){?>
                              <?php foreach ($output['checked_brand'] as $key=>$val){?>
                              <span class="selected" nctype="span_filter"><?php echo $lang['goods_class_index_brand'];?>:<em><?php echo $val['brand_name']?></em><i data-uri="<?php echo removeParam(array('b_id' => $key));?>">X</i></span>
                              <?php }?>
                              <?php }?>
                              <?php if(isset($output['checked_attr']) && is_array($output['checked_attr'])){?>
                              <?php foreach ($output['checked_attr'] as $val){?>
                              <span class="selected" nctype="span_filter"><?php echo $val['attr_name'].':<em>'.$val['attr_value_name'].'</em>'?><i data-uri="<?php echo removeParam(array('a_id' => $val['attr_value_id']));?>">X</i></span>
                              <?php }?>
                              <?php }?>
                            </dd>
                          </dl>
                          <?php }?>
                          <?php if (!isset($output['checked_brand']) || empty($output['checked_brand'])){?>
                          <?php if(!empty($output['brand_array']) && is_array($output['brand_array'])){?>
                          <dl class="attribute_dl <?php if($dl>3){?>dl_hide<?php }?>">
                            <dt class="attribute_name"><?php echo $lang['goods_class_index_brand'].$lang['nc_colon'];?></dt>
                            <dd  class="attribute_val">
                              <div class="h_chooselist">
                                <?php $i = 0;foreach ($output['brand_array'] as $k=>$v){$i++;?>
                                <a href="<?php $b_id = (($_GET['b_id'] != '' && intval($_GET['b_id']) != 0)?$_GET['b_id'].'_'.$k:$k); echo replaceParam(array('b_id' => $b_id));?>"><?php echo $v['brand_name'];?></a>
                                <?php }?>
                              </div>
                            </dd>
                            
                          </dl>
                          <?php $dl++;}?>
                          <?php }?>
                          <?php if(!empty($output['attr_array']) && is_array($output['attr_array'])){?>
                          <?php $j = 0;foreach ($output['attr_array'] as $key=>$val){$j++;?>
                          <?php if(!isset($output['checked_attr'][$key]) && !empty($val['value']) && is_array($val['value'])){?>
                          <dl class="attribute_dl">
                            <dt class="attribute_name"><?php echo $val['name'].$lang['nc_colon'];?></dt>
                            <dd class="attribute_val" id="filter_brand">
                              <div class="h_chooselist">
                                <?php $i = 0;foreach ($val['value'] as $k=>$v){$i++;?>
                                <a href="<?php $a_id = (($_GET['a_id'] != '' && $_GET['a_id'] != 0)?$_GET['a_id'].'_'.$k:$k); echo replaceParam(array('a_id' => $a_id));?>"><?php echo $v['attr_value_name'];?></a>
                                <?php }?>
                              </div>
                            </dd>
                            <?php if (count($val['value']) > 10){?>
                            <div class="all"><span nc_type="show"><i class="icon-angle-down"></i><?php echo $lang['goods_class_index_more'];?></span></div>
                            <?php }?>
                          </dl>
                          <?php }?>
                          <?php $dl++;} ?>
                          <?php }?>
                        <!-- <dl class="attribute_dl">
                            <dt class="attribute_name">产地：</dt>
                            <dd class="attribute_val">
                                <a class="more-attr">更多<span></span></a>

                                <div class="h_chooselist">
                                    <a class="all select" href="/browse/category-8000018.aspx?importsourceid=">不限</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=5">新西兰</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=6">澳大利亚</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=7">德国</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=8">荷兰</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=21">新加坡</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=23">爱尔兰</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=24">英国</a>
                                    <a class="" href="/browse/category-8000018.aspx?importsourceid=46">瑞典</a>
                                </div>
                            </dd>
                        </dl> -->
                    </div>

                </div>
                <p class="sub_shrink" id="sp_brand"><span>展开搜索</span></p>

                <form name="aspnetForm" method="post" action="/browse/category-8000018.aspx" id="aspnetForm">
                    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTAT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S5rdWFpZGkxMDAuY29tLwzlv6vpgJLmn6Xor6JkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYEBURTdWJDYXRlZ29yeSRzZWFyY2hfQ29tbW9uX0N1dGRvd25TZWFyY2gkXyRja2JMaXN0cHJvZHVjdFNlYXJjaFR5cGUkMAVEU3ViQ2F0ZWdvcnkkc2VhcmNoX0NvbW1vbl9DdXRkb3duU2VhcmNoJF8kY2tiTGlzdHByb2R1Y3RTZWFyY2hUeXBlJDEFRFN1YkNhdGVnb3J5JHNlYXJjaF9Db21tb25fQ3V0ZG93blNlYXJjaCRfJGNrYkxpc3Rwcm9kdWN0U2VhcmNoVHlwZSQyBURTdWJDYXRlZ29yeSRzZWFyY2hfQ29tbW9uX0N1dGRvd25TZWFyY2gkXyRja2JMaXN0cHJvZHVjdFNlYXJjaFR5cGUkMg=="/>

                    <script>$('#SubCategory_ctl00___SiteUrl5').html('婴幼儿奶粉');</script>
                    <div class="category_search">

                        <div class="category_search2">
                            关键字： <input name="SubCategory$search_Common_CutdownSearch$_$txtKeywords" type="text"
                                        maxlength="50" id="SubCategory_search_Common_CutdownSearch___txtKeywords"
                                        class="catesearch_key"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价格范围：<input
                                name="SubCategory$search_Common_CutdownSearch$_$txtStartPrice" type="text"
                                id="SubCategory_search_Common_CutdownSearch___txtStartPrice" class="catesearch_range"/>
                            - <input name="SubCategory$search_Common_CutdownSearch$_$txtEndPrice" type="text"
                                     id="SubCategory_search_Common_CutdownSearch___txtEndPrice"
                                     class="catesearch_range"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            筛选：<span id="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType"
                                     style="display:inline-block;"><input
                                    id="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_0"
                                    type="checkbox"
                                    name="SubCategory$search_Common_CutdownSearch$_$ckbListproductSearchType$0"/><label
                                    for="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_0">新品</label><input
                                    id="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_1"
                                    type="checkbox"
                                    name="SubCategory$search_Common_CutdownSearch$_$ckbListproductSearchType$1"/><label
                                    for="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_1">热卖</label><input
                                    id="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_2"
                                    type="checkbox"
                                    name="SubCategory$search_Common_CutdownSearch$_$ckbListproductSearchType$2"/><label
                                    for="SubCategory_search_Common_CutdownSearch___ckbListproductSearchType_2">保税</label></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="submit" name="SubCategory$search_Common_CutdownSearch$_$btnSearch" value=" "
                                   id="SubCategory_search_Common_CutdownSearch___btnSearch" class="cut_down_button"/>
                        </div>
                            <style>
                                ._jmyp .category_sequence .pager-wrap{
                                    margin-right: 0;
                                }
                                /*._jmyp .category_sequence ul li span{
                                    background:none;
                                }*/
                            </style>
                        <div class="category_sequence">
                            <!--<em>排序方式：</em>
                               <ul>
                                  <li class="c_sel"><span><a id="SubCategory_btn_Common_Search_SortPrice" title="按价格排序" name="SubCategory$btn_Common_Search_SortPrice" href="javascript:__doPostBack(&#39;SubCategory$btn_Common_Search_SortPrice&#39;,&#39;&#39;)"><img border="0" src="/shop/templates/haidao/pictures/sortbypriceupstop.gif" alt="按价格排序" /></a></span></li>
                                  <li><span><a id="SubCategory_btn_Common_Search_SortSaleCounts" title="按销量排序" name="SubCategory$btn_Common_Search_SortSaleCounts" href="javascript:__doPostBack(&#39;SubCategory$btn_Common_Search_SortSaleCounts&#39;,&#39;&#39;)"><img border="0" src="/shop/templates/haidao/pictures/xiao1.gif" alt="按销量排序" /></a></span></li>
                                  <li><span><a id="SubCategory_btn_Common_Search_SortPopularity" title="按人气排序" name="SubCategory$btn_Common_Search_SortPopularity" href="javascript:__doPostBack(&#39;SubCategory$btn_Common_Search_SortPopularity&#39;,&#39;&#39;)"><img border="0" src="/shop/templates/haidao/pictures/ren1.gif" alt="按人气排序" /></a></span></li>
                                  <li><span><a id="SubCategory_btn_Common_Search_SortTime" title="按时间排序" name="SubCategory$btn_Common_Search_SortTime" href="javascript:__doPostBack(&#39;SubCategory$btn_Common_Search_SortTime&#39;,&#39;&#39;)"><img border="0" src="/shop/templates/haidao/pictures/sortbytimeupstop.gif" alt="按时间排序" /></a></span></li>
                               </ul>

                               -->
                            <!--<ul>
                                <li><a>默认</a></li>
                                <li class="sel"><a class="up">价格<span></span></a></li>
                                <li><a>销量<span></span></a></li>
                                <li><a>最新上架</a></li>
                                <li><label><input type="checkbox" class="checkbox"/>有货</label></li>
                            </ul>-->
                            <ul>
                                <li <?php if(!$_GET['key']){?>class="sel"<?php }?>><a
                                        href='<?php echo dropParam(array('order', 'key'));?>'>默认</a>
                                </li>
                                <li <?php if($_GET['key'] == '3'){?>class="sel"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '3') ? replaceParam(array('key' => '3', 'order' => '1')):replaceParam(array('key' => '3', 'order' => '2')); ?>" <?php if($_GET['key'] == '3'){?>class="<?php echo $_GET['order'] == 1 ? 'up' : 'down';?>"<?php }?> title="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '3')?$lang['goods_class_index_price_asc']:$lang['goods_class_index_price_desc']; ?>"><?php echo $lang['goods_class_index_price'];?><span></span></a></li>
                                <li <?php if($_GET['key'] == '1'){?>class="sel"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '1') ? replaceParam(array('key' => '1', 'order' => '1')):replaceParam(array('key' => '1', 'order' => '2')); ?>" <?php if($_GET['key'] == '1'){?>class="<?php echo $_GET['order'] == 1 ? 'up' : 'down';?>"<?php }?> title="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '1')?$lang['goods_class_index_sold_asc']:$lang['goods_class_index_sold_desc']; ?>"><?php echo $lang['goods_class_index_sold'];?><span></span></a></li>
                                <li <?php if($_GET['key'] == '2'){?>class="sel"<?php }?>><a href="<?php echo ($_GET['order'] == '2' && $_GET['key'] == '2') ? replaceParam(array('key' => '2', 'order' => '1')):replaceParam(array('key' => '2', 'order' => '2')); ?>" <?php if($_GET['key'] == '2'){?>class="<?php echo $_GET['order'] == 1 ? 'up' : 'down';?>"<?php }?> title="<?php  echo ($_GET['order'] == '2' && $_GET['key'] == '2')?$lang['goods_class_index_click_asc']:$lang['goods_class_index_click_desc']; ?>"><?php echo $lang['goods_class_index_click']?><span></span></a></li>
                                <!-- <li><label><a href="/browse/category-8000018.aspx?Stock=has&sortOrder=Desc"><input
                                                type="checkbox" class="checkbox"
                                                onclick="window.location.href='/browse/category-8000018.aspx?Stock=has&sortOrder=Desc'">有货</a></label>
                                </li> -->
                            </ul>
                            <!-------过滤条件价格、销量、最新上架--------->
                            <!--<div class="pager-wrap">共<span>51</span>件商品<span class="pager"><a>&lt;</a><span class="cur-page">1</span>/<span class="total-page">3</span><a>&gt;</a></span></div>-->

                            <!-- <div class="pager-wrap">共<span>125</span>件商品<span class="pager"><?php echo $output['show_page1']; ?> </span></div> -->
                        </div>
                    </div>
                </form>

                <script language="javascript">
                    var y = $(".category_search").offset().top;
                    var m = $('.side_nav').clone();
                    var n = $('.main-conl').clone();
                    var newSearchBtn = $('.top_buycart>a').clone();
                    $('.nav1').append(m);
                    $('.main-con').prepend(n);
                    m.hide();
                    n.hide();
                    newSearchBtn.hide();
                    $(window).scroll(function () {
                        if ($(window).scrollTop() >= y) {

                            $(".pager-wrap").hide();
                            m.show();
                            n.show();
                            m.addClass('fix-nav');
                            n.addClass('fix-nav-con');
                            $('.search_tab').addClass('new-search-content');
                            $(".category_search").addClass('new-category-search');
                            $(".top_buycart>a").addClass('new-cart-a');
                        }
                        else {
                            $(".pager-wrap").show();
                            m.hide();
                            n.hide();
                            $('.search_tab').removeClass('new-search-content');
                            $(".category_search").removeClass('new-category-search');
                            $(".top_buycart>a").removeClass('new-cart-a');
                        }
                    });

                    /*var n = $('.main-conl').clone();

                     var m = $('.main-con').prepend($('.main-conl').clone());*/

                    $(function () {
                        var sumwidth = 0;
                        var li_index = 0;
                        $("#ul_subcategory li").each(function (suo, liitem) {
                            sumwidth += parseInt($(this).width()) + 20;
                            if (sumwidth > $("#ul_subcategory").width()) {
                                return false;
                            }
                            li_index = suo;
                        });
                        if ($("#ul_subcategory li").size() <= (li_index - 0 + 1)) {
                            $("#sp_subcategory").hide();
                        } else {
                            $("#ul_subcategory li:gt(" + li_index + ")").hide();
                        }

                        $("#sp_subcategory").toggle(function () {
                            $("#ul_subcategory li:gt(" + li_index + ")").show();
                            $(this).find("span").text('收缩');
                        }, function () {
                            $("#ul_subcategory li:gt(" + li_index + ")").hide();
                            $(this).find("span").text('展开搜索');
                        });

                        if ($(".sub_property dl").size() <= 3) {
                            $("#sp_brand").hide();
                        } else {
                            $(".sub_property dl:gt(2)").hide();
                        }

                        $("#sp_brand").toggle(function () {
                            $(".sub_property dl:gt(2)").show();
                            $(this).find("span").text('收缩');
                        }, function () {
                            $(".sub_property dl:gt(2)").hide();
                            $(this).find("span").text('展开搜索');
                        });
                    });
                </script>

                <div class="category_pro_list cp-list">
                    <ul>
                        <?php foreach($output['goods_list'] as $value){?>
                        <li>
                            <div class="category_pro_pic" nctype_goods=" <?php echo $value['goods_id'];?>" nctype_store="<?php echo $value['store_id'];?>">
                                <a id="SubCategory_rptProducts_ctl00_ctl00_ProductDetailsLink2"
                                   href="<?php echo urlShop('goods','index',array('goods_id'=>$value['goods_id']));?>" target="_blank"><img
                                        id="SubCategory_rptProducts_ctl00_ctl00_Common_ProductThumbnail1"
                                        CustomToolTip="ProductName"
                                        src="<?php echo thumb($value, 255,1);?>"
                                        border="0"/></a>
                            </div>
                            <div class="category_pro_price"><span class="rate">税率：10%</span>

                                <p><strong><span
                                            id="SubCategory_rptProducts_ctl00_ctl00_FormatedMoneyLabel2"><?php echo ncPriceFormatForList($value['goods_marketprice']);?></span></strong>
                                </p>
                                <!--<em>￥:<span id="SubCategory_rptProducts_ctl00_ctl00_FormatedMoneyLabel1">0.00</span></em>-->
                            </div>
                            <div class="category_pro_name"><a
                                    id="SubCategory_rptProducts_ctl00_ctl00_ProductDetailsLink1"
                                    href="<?php echo urlShop('goods','index',array('goods_id'=>$value['goods_id']));?>" target="_blank"><?php echo $value['goods_name_highlight'];?></a></div>
                            <div class="bars fix">

                                <div class="pd-size">
                                    <div class="pd-size-tit">请选择商品规格
                                        <div class="arrow-btn">收起∨</div>
                                    </div>
                                    <script type="text/javascript">var productSkus_1572 = [{
                                            "SkuId": "1572_0",
                                            "Count": 257
                                        }];
                                        var productQuantityInShoppingCart_1572 = [{
                                            "SkuId": "1572_0",
                                            "Count": 0
                                        }];</script>
                                </div>
                                <div class="num-wrap fix">
                                    <div class="num-con">
                                        <input type="text" value="1" old-v="1" class=''/>
                                    </div>
                                    <div class="num-bar">
                                        <a class='btn-add'></a>
                                        <a class='btn-reduce disabled'></a>

                                    </div>
                                </div>
                                <a class='addcartButton cart-btn' productid="1572" price="298.00"
                                   fastbuy_skuid="1572_0"  nctype="addcart" data-param="<?php echo $value['goods_id'];?>" >加入购物车</a>

                            </div>
                        </li>
                        <?php }?>
                    </ul>
                </div>
                <script>
                    $(function () {
                        // 加入购物车
                        $('a[nctype="addcart"]').click(function(){
                            var goods_id = $(this).attr('data-param');
                            var num = $(this).siblings('.num-wrap').find('.num-con input').attr('old-v');
                            addcart(goods_id, num,'addcart_callback');
                        });
                        // $('.products_wrap li').each(function(){
                        //     $(this).hover(function(){
                        //         $(this).addClass('hover');
                        //         $(this).find('.item_wrap_left').show();
                        //         // $(this).find('.item_wrap').css('left');
                        //     },function(){
                        //         $(this).removeClass('hover');
                        //         $(this).find('.item_wrap_left').hide();
                        //     })
                        // });

                        /* 加入购物车后的效果函数 */
                        function addcart_callback(data){
                              layer.msg('加入购物车成功',{
                                  btn : ['现在去结算','继续购物'],
                                  btn1 : function(){
                                    location.href = '/shop/?act=cart';
                                  },
                                  btn2 : function(){
                                    layer.closeAll();
                                  }
                              });
                            // $('#bold_num').html(data.num);
                            // $('#bold_mly').html(price_format(data.amount));
                            // $('.ncs-cart-popup').fadeIn('fast');
                        }
                        var $input = $(".num-wrap input");
                        if ($input != null && $input != undefined && $input != "") {
                            $input.each(function (i, elem) {
                                var theme = "disabled";
                                var elem = $(elem);
                                if (elem.hasClass(theme)) {
                                    elem.attr("disabled", "disabled");
                                } else {
                                    elem.removeAttr("disabled");
                                }
                            });
                        }
                        $(".category_pro_list li").hover(function () {
                            if ($(".category_pro_list").index(this) != 0) {
                                $(".category_pro_list li:first").removeClass("listhover");
                            }
                            $(this).addClass("listhover");
                        }, function () {
                            $(this).removeClass("listhover");
                        });
                        $(".category_pro_list li:first").addClass("listhover");
                        /*
                         //点击 分类菜单 标题
                         $(".sub-cate h3 a").bind("click",function(){
                         $(this).parents(".sub-cate").toggleClass("expand");
                         })
                         //点击 分类菜单 展开 图标
                         $(".sub-cate a.arrow").bind("click",function(){
                         $(this).closest("li").toggleClass("show");
                         })*/
                        //点击 刷选 更多
                        $("a.more-attr").bind("click", function () {
                            $(this).closest(".attribute_val").toggleClass("show");
                        })
                        //购物车 输入框 失去焦点
                        $(".num-wrap input").blur(function () {
                            var theme = "disabled";
                            if ($(this).hasClass(theme)) {
                                $(this).attr("disabled", "disabled");
                                return;
                            }
                            var $ele = $(this);
                            var val = $ele.val();
                            var oldV = $ele.attr("old-v");
                            var $btnReduce = $(this).parents(".num-wrap").find(".btn-reduce");
                            if (isNaN(val)) {
                                $ele.val(oldV);
                                if (oldV <= 1) {
                                    $btnReduce.addClass("disabled");
                                } else {
                                    $btnReduce.removeClass("disabled");
                                }
                                return;
                            }
                            if (val <= 1) {
                                val = 1;
                                $ele.val(val);
                                $btnReduce.addClass("disabled");
                            } else {
                                $btnReduce.removeClass("disabled");
                            }
                            $ele.attr("old-v", val);
                        })
                        //购物车 数量 添加
                        $(".num-wrap .btn-add").unbind("click").bind("click", function () {
                            var theme = "disabled";
                            if ($(this).hasClass(theme)) {
                                return;
                            }
                            var $ele = $(this).parents(".num-wrap").find("input");
                            var val = $ele.val();
                            if (isNaN(val) || val == "") {
                                val = $ele.attr("old-v");
                                if (!val) {
                                    val = 1;
                                }
                            }
                            val = parseInt(val);
                            val += 1;
                            if (val > 1) {
                                $(this).parents(".num-wrap").find(".btn-reduce").removeClass("disabled");
                            }
                            $ele.val(val).attr("old-v", val);
                        })
                        //购物车 数量 添加
                        $(".num-wrap .btn-reduce").unbind("click").bind("click", function () {
                            var theme = "disabled";
                            if ($(this).hasClass(theme)) {
                                return;
                            }
                            var $ele = $(this).parents(".num-wrap").find("input");
                            var val = $ele.val();
                            if (isNaN(val) || val == "") {
                                val = $ele.attr("old-v");
                                if (!val) {
                                    val = 1;
                                }
                            }
                            val = parseInt(val);
                            val -= 1;
                            if (val <= 1) {
                                val = 1;
                                $(this).addClass(theme);
                            }
                            $ele.val(val).attr("old-v", val);
                        })
                    });
                </script>
                <style>
                    .pagination li span {
                        font: normal 14px/20px "microsoft yahei";
                        color: #AAA;
                        background-color: #FAFAFA;
                        text-align: center;
                        display: block;
                        min-width: 20px;
                        padding: 8px !important;
                        border: 1px solid #E6E6E6;
                        position: relative;
                        z-index: 1;
                    }
                </style>
                <div class="pagination">
                    <?php echo $output['show_page']; ?>
                </div>

            </div>
        </div>
    </div>
</div>
<!-- <script src="/shop/templates/haidao/js/productlist.helper.js" type="text/javascript"></script> -->
<div class="bars success-tip" id="success-tip">+1</div>
<?php }?>